package com.carsystem.utils.excelutil;

public class BusinessException extends RuntimeException {

    /**
     * 错误描述信息
     */
    private String message;
    private Object extendData;

    public BusinessException() { }

    public BusinessException(String message) {
        super(message);
        this.message = message;
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public BusinessException(String message, Object extendData) {
        super();
        this.message = message;
        this.extendData = extendData;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getExtendData() {
        return extendData;
    }

    public void setExtendData(Object extendData) {
        this.extendData = extendData;
    }
}
